$package('Bdth.HisGps');
Bdth.HisGps = function () {
	var _box = null;
	var startTime = new Date().Format("yyyy-MM-dd") + " 00:00:00";
	var endTime = new Date().Format("yyyy-MM-dd") + " 23:59:59";
	var _this = {
		config: {
			dataGrid: {
				title: '历史定位数据列表',
				url: path + '/hisGps/dataList',
				queryParams: {"startTime": startTime, "endTime": endTime, "dataListForView": true},
				columns: [[
					//{field: 'id', checkbox: true, title: 'id'},
					{field: 'equipName', title: '显示名称', width: 120, sortable: false},
					{field: 'simNo', title: '设备号', width: 120, sortable: false},
					{field: 'depName', title: '所属组', width: 120, sortable: false},
					{field: 'sendTime', title: '定位时间', width: 120, sortable: false},
					{field: 'orgLongitude', title: '经度', width: 120, sortable: false},
					{field: 'orgLatitude', title: '纬度', width: 120, sortable: false},
					{field: 'velocity', title: '速度', width: 40, sortable: false},
					{field: 'directionDescr', title: '方向', width: 80, sortable: false},
					/*{field: 'location', title: '位置', width: 120, sortable: false},*/
				]]
			},
		},
		init: function () {
			_box = new DataGrid(_this.config);
			_box.init();
		}
	}
	return _this;
}();

$(function () {
	Bdth.HisGps.init();
});		